{include file='../public_btn.html'}
<div class="html-box">
    <form target="iframeNewsTarget" method="post" action="/manage/admin/edit_role">
    <input type="hidden" name="post[id]" value="{$row.id}" />

    <table class="table-list">
    <tbody>

        <tr>
            <td class="td-label"><label>角色名称：<span class="c-red">*</span></label></td>
            <td class="td-input">
                <input type="text" class="form-i w200" name="post[name]" value="{$row.name}" />
            </td>
        </tr>

        <tr>
            <td class="td-label"><label>角色描述：</label></td>
            <td class="td-input">
                <textarea name="post[desc]">{$row.desc}</textarea>
            </td>
        </tr>

        <tr>
            <td class="td-label"><label>分配权限：</label></td>
            <td class="td-input">
                <div>
                    <button type="button" class="uiBtn BtnBlue" onclick="main.allchecked('post[menu_list][]');">全选</button>
                    <button type="button" class="uiBtn" onclick="main.unchecked('post[menu_list][]');">反选</button>
                </div>
                {$select_category}
            </td>
        </tr>

        <tr class="tr-btn">
            <td class="td-label"></td>
            <td class="td-input">
                <button type="submit" name="Submit" class="uiBtn BtnGreen">提&nbsp;&nbsp;交</button>
                <button type="reset" class="uiBtn">重&nbsp;&nbsp;置</button>
            </td>
        </tr>

    </tbody>
    </table>

    </form>
</div>